home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / tpapi.exe / NWCONN.PA1 < prev    next >
Text File  |  1994-01-14  |  5KB  |  94 lines

  1. {#Z+}
  2. (*(10U&l12D(s4099T&k2S*)
  3. {***************************************************************************}
  4. {** Program : NWCONN                                                      **}
  5. {***************************************************************************}
  6. {** Version : 1.4             ** Started : 11/11/91  ** Ended :   /  /    **}
  7. {***************************************************************************}
  8. {******************************** Description ******************************}
  9. {***************************************************************************}
  10. {** OOP library for Netware API                                           **}
  11. {**                                                                       **}
  12. {** This unit forms the second level object : CONNECT                     **}
  13. {** This object is a descandent of          : NETWARE                     **}
  14. {**                                                                       **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {***************************************************************************}
  19. {******************************** Information ******************************}
  20. {***************************************************************************}
  21. {** Provides Netware Connection Services                                  **}
  22. {**                                                                       **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {** This code is (c) 1991 - 1994 Antonio Covelli. ALL RIGHTS RESERVED.    **}
  26. {** Portions (c) Novell Inc,                                              **}
  27. {**                                                                       **}
  28. {**                                                                       **}
  29. {***************************************************************************}
  30.  
  31. {$I NETWARE.INC}
  32. {#Z-}
  33.  
  34. UNIT NWCONN;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   nwvar,
  41.   netware;
  42.  
  43. TYPE
  44.  
  45.   pConnectionOBJ = ^ConnectionOBJ;
  46.   ConnectionOBJ  = OBJECT (NetwareOBJ)
  47.  
  48.     FUNCTION    AttachToFileServer            (ServerName : TObjectName; VAR ConnectionID : WORD) : WORD;
  49.  
  50.     FUNCTION    AttachToFileServerWithAddress (ServerName : TObjectName; VAR ConnectionID : WORD;
  51.                                                NetAddress : TServerAddress) : WORD;
  52.  
  53.     PROCEDURE   DetachFromFileServer          (ConnectionID : WORD);
  54.  
  55.     FUNCTION    EnterLoginArea                (LoginSubdirectoryName : TPathName; NumberOfLocalDrives : WORD) : WORD;
  56.  
  57.     FUNCTION    GetConnectionInformation      (ConnectionNumber : longint; VAR ObjectName : TObjectName;
  58.                                                VAR ObjectType : OT_BinderyType; VAR ObjectID : OT_BinderyID;
  59.                                                VAR LoginTime : TByte7Array) : WORD;
  60.  
  61.     FUNCTION    GetConnectionNumber : longint;
  62.     {The above function is in NETWARE.PAS}
  63.  
  64.     FUNCTION    GetInternetAddress            (ConnectionNumber : longint; VAR NetworkNumber : TByte4Array;
  65.                                                VAR PhysicalNodeAddress : TByte6Array; VAR SocketNumber : WORD;
  66.                                                var ConnectionType : byte) : WORD;
  67.  
  68.     FUNCTION    GetObjectConnectionList       (ObjectName : TObjectName; ObjectType : OT_BinderyType;
  69.                                                VAR NumberOfConnections : byte;
  70.                                                VAR ConnectionList : TConnectionList) : WORD;
  71.  
  72.     PROCEDURE   GetStationAddress             (VAR PhysicalNodeAddress : TByte6Array);
  73.  
  74.     function    GetUserConnectionList         (ObjectName : TObjectName; var NumberOfConnections : byte;
  75.                                                var ConnectionList : TConnectionList) : word;
  76.  
  77.     FUNCTION    LoginObject                   (ObjectName : TObjectName; ObjectType : OT_BinderyType;
  78.                                                ObjectPassword : TPassword) : WORD;
  79.  
  80.     function    KeyedLogin                    (ObjectName : TObjectName; ObjectType : OT_BinderyType;
  81.                                                LoginKey : TEncryptKey) : WORD;
  82.  
  83.     PROCEDURE   Logout;
  84.  
  85.     PROCEDURE   LogoutFromFileServer          (ConnectionID : WORD);
  86.  
  87.     function    NegotiateBufferSize           (ProposedBufferSize : word;
  88.                                                var AcceptedBufferSize : word) : word;
  89.  
  90.     DESTRUCTOR  Done; VIRTUAL;
  91.  
  92.   END;
  93.  
  94.